class Base:
    def __init__(self):
        self.func2()

    def func(self):
        print('func')

    func2 = func


class Sub(Base):
    def func(self):
        print('sub func')


if __name__ == '__main__':

    b = Base()
    s = Sub()

    b.func()
    b.func2()
    s.func()
    s.func2()


